/* Contenedor flotante */
.social-float {
    position: fixed;
    bottom: 30px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 2000;
}

/* Estilo general de los botones */
.float-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    box-shadow: 2px 4px 10px rgba(0,0,0,0.3);
    text-decoration: none;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.float-btn:hover {
    transform: scale(1.1);
    color: white;
    filter: brightness(1.1);
}

/* Colores de Marca */
.whatsapp { background-color: #25d366; }
.instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.facebook { background-color: #1877f2; }

/* Ajuste para celulares */
@media (max-width: 600px) {
    .float-btn {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
    .social-float {
        bottom: 20px;
        right: 15px;
    }
}


/* Contenedor para centrar */
.afiliate-float-container {
    position: fixed;
    bottom: 30px; /* Misma altura que los de redes sociales */
    left: 50%;
    transform: translateX(-50%);
    z-index: 2500; /* Por encima de todo */
}

/* Estilo del botón */
.btn-afiliate-float {
    background-color: var(--verde-udocba, #99C823);
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    transition: all 0.3s ease;
    border: 2px solid white;
}

.btn-afiliate-float:hover {
    background-color: #82ab1d;
    transform: translateY(-5px);
    color: white;
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

/* Animación de pulso suave */
@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(153, 200, 35, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(153, 200, 35, 0); }
    100% { box-shadow: 0 0 0 0 rgba(153, 200, 35, 0); }
}

.btn-afiliate-float {
    animation: pulse-green 2s infinite;
}

/* Ajuste para móviles */
@media (max-width: 600px) {
    .afiliate-float-container {
        bottom: 20px;
    }
    .btn-afiliate-float {
        padding: 10px 18px;
        font-size: 14px;
    }
}